Vehicle control system

ABSTRACT

A method is provided for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine. The engine further includes an inlet control device for controlling flow entering the manifold. The method includes providing an engine command; calculating a desired cylinder charge based on said command; and adjusting the outlet control device to provide said desired cylinder charge. The engine command may be, for example, a driver command, such as a driver torque command. Further, the outlet control device may be implement in with a variety of mechanisms. For example, in one embodiment the outlet control device is a valve of the engine having a variable lift. In one embodiment the outlet device is a valve having variable timing. Likewise, the inlet device may be adjusted in response to a variety of parameters. For example, in one embodiment the inlet device is adjusted based on manifold pressure. Still further, engine control may also include adjusting of the inlet control device.

RELATED APPLICATIONS AND ISSUED PATENTS

[0001] This patent application is related to the following co-pending patent applications and issued U.S. Patent Nos., all assigned to the same assignee as the present application, the entire subject matter thereof being incorporated herein by reference:

[0002] Application Ser. No. 09/420,322 filed Oct. 18, 1999, inventors John D. Russell et al.

[0003] Application Ser. No. 09/420,323 filed Oct. 18, 1999, inventors John D. Russell et al.

[0004] Application Ser. No. 09/420,451 filed Oct. 18, 1999, inventors John D. Russell et al.

[0005] Application Ser. No. 09/420,447 filed Oct. 18, 1999, inventors John D. Russell et al.

[0006] Application Ser. No. 09/888,032 filed Jun. 22, 2001 which is a continuation of application Ser. No. 09/420,451 filed Oct. 18, 1999, inventors John D. Russell et al.

[0007] U.S. Pat. No. 6,250,283 filed Oct. 18, 1999 issued Jun. 26, 2001;

[0008] U.S. Pat. No. 6,219,611 filed Oct. 18, 1999 issued Apr. 17, 2001;

[0009] U.S. Pat. No. 6,182,626 filed Oct. 18, 1999 issued Jun. 26, 2001.

[0010] Further this patent application is a continuation of the above-referenced co-pending patent applications and claims the benefit of the Oct. 18, 1999 filing date, or effective filing date, of the above-referenced co-pending patent applications under the provisions of 35 U.S.C. 120.

SUMMARY

[0011] In accordance with the present invention, a method is provided for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine. The engine further includes an inlet control device for controlling flow entering the manifold. The method includes providing an engine command; calculating a desired cylinder charge based on said command; and adjusting the outlet control device to provide said desired cylinder charge.

[0012] The engine command may be, for example, a driver command, such as a driver torque command. Further, the outlet control device may be implement in with a variety of mechanisms. For example, in one embodiment the outlet control device is a valve of the engine having a variable lift. In one embodiment the outlet device is a valve having variable timing. Likewise, the inlet device may be adjusted in response to a variety of parameters. For example, in one embodiment the inlet device is adjusted based on manifold pressure. Still further, engine control may also include adjusting of the inlet control device.

[0013] The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.

DESCRIPTION OF DRAWINGS

[0014] The object and advantages of the invention claimed herein will be more readily understood by reading an example of an embodiment in which the invention is used to advantage with reference to the following drawings wherein:

[0015]FIGS. 1A and 1B are a block diagrams of an embodiment in which the invention is used to advantage;

[0016]FIG. 2A is a block diagram of an embodiment in which the invention is used to advantage;

[0017] FIGS. 2B-2O are graphs describing operation of the embodiment in FIG. 2A;

[0018] FIGS. 3-5, 8-10 are high level flowcharts which perform a portion of operation of the embodiment shown in FIGS. 1A, 1B, and 2A;

[0019]FIG. 6 is a graph showing how various factors are related to engine operation according to the present invention;

[0020]FIG. 7 is a graph depicting results using the present invention;

[0021] FIGS. 11A-11F are graphs describing operation of an embodiment of the present invention; and

[0022]FIGS. 12, 13 and 14 are a block diagrams of an embodiment in which the invention is used to advantage.

[0023] Like reference symbols in the various drawings indicate like elements.

DETAILED DESCRIPTION DESCRIPTION OF PREFERRED EMBODIMENTS

[0024] Direct injection spark ignited internal combustion engine 10, comprising a plurality of combustion chambers, is controlled by electronic engine controller 12. Combustion chamber 30 of engine 10 is shown in FIG. 1A including combustion chamber walls 32 with piston 36 positioned therein and connected to crankshaft 40. In this particular example piston 30 includes a recess or bowl (not shown) to help in forming stratified charges of air and fuel. Combustion chamber, or cylinder, 30 is shown communicating with intake manifold 44 and exhaust manifold 48 via respective intake valves 52 a and 52 b (not shown), and exhaust valves 54 a and 54 b (not shown). Fuel injector 66A is shown directly coupled to combustion chamber 30 for delivering liquid fuel directly therein in proportion to the pulse width of signal fpw received from controller 12 via conventional electronic driver 68. Fuel is delivered to fuel injector 66A by a conventional high pressure fuel system (not shown) including a fuel tank, fuel pumps, and a fuel rail.

[0025] Intake manifold 44 is shown communicating with throttle body 58 via throttle plate 62. In this particular example, throttle plate 62 is coupled to electric motor 94 so that the position of throttle plate 62 is controlled by controller 12 via electric motor 94. This configuration is commonly referred to as electronic throttle control (ETC) which is also utilized during idle speed control. In an alternative embodiment (not shown), which is well known to those skilled in the art, a bypass air passageway is arranged in parallel with throttle plate 62 to control inducted airflow during idle speed control via a throttle control valve positioned within the air passageway.

[0026] Exhaust gas oxygen sensor 76 is shown coupled to exhaust manifold 48 upstream of catalytic converter 70. In this particular example, sensor 76 provides signal EGO to controller 12 which converts signal EGO into two-state signal EGOS. A high voltage state of signal EGOS indicates exhaust gases are rich of stoichiometry and a low voltage state of signal EGOS indicates exhaust gases are lean of stoichiometry. Signal EGOS is used to advantage during feedback air/fuel control in a conventional manner to maintain average air/fuel at stoichiometry during the stoichiometric homogeneous mode of operation.

[0027] Conventional distributorless ignition system 88 provides ignition spark to combustion chamber 30 via spark plug 92 in response to spark advance signal SA from controller 12.

[0028] Controller 12 causes combustion chamber 30 to operate in either a homogeneous air/fuel mode or a stratified air/fuel mode by controlling injection timing. In the stratified mode, controller 12 activates fuel injector 66A during the engine compression stroke so that fuel is sprayed directly into the bowl of piston 36. Stratified air/fuel layers are thereby formed. The strata closest to the spark plug contains a stoichiometric mixture or a mixture slightly rich of stoichiometry, and subsequent strata contain progressively leaner mixtures. During the homogeneous mode, controller 12 activates fuel injector 66A during the intake stroke so that a substantially homogeneous air/fuel mixture is formed when ignition power is supplied to spark plug 92 by ignition system 88. Controller 12 controls the amount of fuel delivered by fuel injector 66A so that the homogeneous air/fuel mixture in chamber 30 can be selected to be at stoichiometry, a value rich of stoichiometry, or a value lean of stoichiometry. The stratified air/fuel mixture will always be at a value lean of stoichiometry, the exact air/fuel being a function of the amount of fuel delivered to combustion chamber 30. An additional split mode of operation wherein additional fuel is injected during the exhaust stroke while operating in the stratified mode is also possible.

[0029] Nitrogen oxide (NOx) absorbent or trap 72 is shown positioned downstream of catalytic converter 70. NOx trap 72 absorbs NOx when engine 10 is operating lean of stoichiometry. The absorbed NOx is subsequently reacted with HC and catalyzed during a NOx purge cycle when controller 12 causes engine 10 to operate in either a rich homogeneous mode or a stoichiometric homogeneous mode.

[0030] Controller 12 is shown in FIG. 1A as a conventional microcomputer including: microprocessor unit 102, input/output ports 104, an electronic storage medium for executable programs and calibration values shown as read only memory chip 106 in this particular example, random access memory 108, keep alive memory 110, and a conventional data bus. Controller 12 is shown receiving various signals from sensors coupled to engine 10, in addition to those signals previously discussed, including: measurement of inducted mass air flow (MAF) from mass air flow sensor 100 coupled to throttle body 58; engine coolant temperature (ECT) from temperature sensor 112 coupled to cooling sleeve 114; a profile ignition pickup signal (PIP) from Hall effect sensor 118 coupled to crankshaft 40; and throttle position TP from throttle position sensor 120; and absolute Manifold Pressure Signal MAP from sensor 122. Engine speed signal RPM is generated by controller 12 from signal PIP in a conventional manner and manifold pressure signal MAP provides an indication of engine load. In a preferred aspect of the present invention, sensor 118, which is also used as an engine speed sensor, produces a predetermined number of equally spaced pulses every revolution of the crankshaft.

[0031] In this particular example, temperature Tcat of catalytic converter 70 and temperature Ttrp of NOx trap 72 are inferred from engine operation as disclosed in U.S. Pat. No. 5,414,994 the specification of which is incorporated herein by reference. In an alternate embodiment, temperature Tcat is provided by temperature sensor 124 and temperature Ttrp is provided by temperature sensor 126.

[0032] Continuing with FIG. 1A, camshaft 130 of engine 10 is shown communicating with rocker arms 132 and 134 for actuating intake valves 52 a, 52 b and exhaust valve 54 a. 54 b. Camshaft 130 is directly coupled to housing 136. Housing 136 forms a toothed wheel having a plurality of teeth 138. Housing 136 is hydraulically coupled to an inner shaft (not shown), which is in turn directly linked to camshaft 130 via a timing chain (not shown). Therefore, housing 136 and camshaft 130 rotate at a speed substantially equivalent to the inner camshaft. The inner camshaft rotates at a constant speed ratio to crankshaft 40. However, by manipulation of the hydraulic coupling as will be described later herein, the relative position of camshaft 130 to crankshaft 40 can be varied by hydraulic pressures in advance chamber 142 and retard chamber 144. By allowing high pressure hydraulic fluid to enter advance chamber 142, the relative relationship between camshaft 130 and crankshaft 40 is advanced. Thus, intake valves 52 a, 52 b and exhaust valves 54 a, 54 b open and close at a time earlier than normal relative to crankshaft 40. Similarly, by allowing high pressure hydraulic fluid to enter retard chamber 144, the relative relationship between camshaft 130 and crankshaft 40 is retarded. Thus, intake valves 52 a, 52 b and exhaust valves 54 a, 54 b open and close at a time later than normal relative to crankshaft 40.

[0033] Teeth 138, being coupled to housing 136 and camshaft 130, allow for measurement of relative cam position via cam timing sensor 150 providing signal VCT to controller 12. Teeth 1, 2, 3, and 4 are preferably used for measurement of cam timing and are equally spaced (for example, in a V-8 dual bank engine, spaced 90 degrees apart from one another), while tooth 5 is preferably used for cylinder identification, as described later herein. In addition, Controller 12 sends control signals (LACT,RACT) to conventional solenoid valves (not shown) to control the flow of hydraulic fluid either into advance chamber 142, retard chamber 144, or neither.

[0034] Relative cam timing is measured using the method described in U.S. Pat. No. 5,548,995, which is incorporated herein by reference. In general terms, the time, or rotation angle between the rising edge of the PIP signal and receiving a signal from one of the plurality of teeth 138 on housing 136 gives a measure of the relative cam timing. For the particular example of a V-8 engine, with two cylinder banks and a five toothed wheel, a measure of cam timing for a particular bank is received four times per revolution, with the extra signal used for cylinder identification.

[0035] Referring now to FIG. 1B, a port fuel injection configuration is shown where fuel injector 66B is coupled to intake manifold 44, rather than directly cylinder 30.

[0036] Referring now to FIG. 2A, a more general diagram shows manifold 44 a, with inlet flow, m_in, and outlet flow, m_out. Inlet flow, m_in, is governed by inlet control device 170. Outlet flow, m_out, is governed by outlet flow device 171. In a preferred embodiment, manifold 44 a is an intake manifold of an engine, inlet control device 170 is a throttle, and outlet control device 171 is a variable cam timing mechanism. However, as one skilled in the art would recognize, there are many alternative embodiments of the present invention. For example, outlet control device could be a swirl control valve, a variable valve timing mechanism, a variable valve lift mechanism, or an electronically controlled intake valve used in camless engine technology.

[0037] Continuing with FIG. 2A, there are other variables that affect flow entering and exiting manifold 44 a. For example, pressures p1 and p2, along with inlet control device 170, determine flow m_in. Similarly, pressures p2 and p3, along with outlet device 171 determine flow m_out. Therefore, flow storage in manifold 44 a, which dictates how fast pressure p2 can change, affects flow m_out. In an example where manifold 44 a is an intake manifold of an engine operating at stoichiometry, flow m_out represents flow entering a cylinder and is directly proportional to engine torque.

[0038] FIGS. 2B-2K illustrate the effect of such interrelationships on system performance. In FIG. 2B, inlet control device 170 is rapidly changed at time t1. The resulting change in outlet flow (m.sub.out) is shown in FIG. 2C. The resulting change in inlet flow (mi_n) is shown in FIG. 2D. This example has outlet control device 171 fixed, and therefore represents conventional engine operation and prior art operation where throttle position is used to control outlet flow (m_out). In this example, a rapid change in inlet control device 170 does not produce an equally rapid change in exit flow m_out.

[0039] According to the present invention, in FIG. 2E, outlet control device 171 is rapidly changed at time t2. The resulting change in outlet flow (m_out) is shown in FIG. 2F. The resulting change in inlet flow (m_in) is shown in FIG. 2G. This example has inlet control device 170 fixed, and therefore represents adjustment of outlet device 170 only to control outlet flow (m_out). In this example, a rapid change in outlet control device 170 does produce an equally rapid change in exit flow m_out. However, the rapid change is not completely sustained.

[0040] According to the present invention, in FIG. 2H, inlet control device 170 is rapidly changed at time t3. Similarly, in FIG. 2I, outlet control device 171 is rapidly changed at time t3. The resulting change in outlet flow (m_out) is shown in FIG. 2J. The resulting change in inlet flow (m_in) is shown in FIG. 2K. This example varies both inlet control device 170 and outlet control device 170 concurrently. In this example, a rapid change in both inlet control device and 170 outlet control device 171 does produce an equally rapid change in exit flow m_out, where the rapid change is sustained.

[0041] According to the present invention, in FIG. 2L, inlet control device 170 is rapidly changed at time t4. Similarly, in FIG. 2M, outlet control device 171 is rapidly changed at time t4 to a greater extent than in FIG. 2I. The resulting change in outlet flow (m_out) is shown in FIG. 2N. The resulting change in inlet flow (m_in) is shown in FIG. 2O. This example varies both inlet control device 170 and outlet control device 170 concurrently. In this example, a rapid change in both inlet control device and 170 outlet control device 171 does produce an equally rapid change in exit flow m_out, where the rapid change is sustained and actually produces a certain amount of peak, or overshoot. This represents how the present invention can be used to not only rapidly produce an increase in outlet flow, but to also add an overshoot. Thus, a control system according to the present invention can therefore generate a airflow lead control. Such lead control is advantageous for engine idle speed control to counteract engine inertia, or for vehicle launch conditions, to give improved drive feel.

[0042] According to the present invention, by using an outlet control device it is possible to rapidly control flow exiting a manifold. Further, by controlling both an inlet and outlet control device it is possible to more accurately rapidly control flow exiting a manifold in various shapes.

[0043] In cases where engine 10 operates at a stoichiometric air/fuel ratio, then engine torque directly proportional to cylinder charge, which is in turn proportional to exit flow m_out and engine speed. Thus, according to the present invention, by controlling engine airflow to a desired value.

[0044] Engine Idle Speed Control

[0045] Referring now to FIG. 3, a routine is described for controlling engine speed using both throttle position and cam timing. In step 310, an engine speed error (Nerr) is calculated based on a difference between the desired engine speed (Ndes) and an actual engine speed (Nact). Then, in step 320, the desired change in cylinder charge is calculated from speed error using controller K1, where controller K1 is represented in the Laplace domain as K1(s) as is known to those skilled in the art. The desired in cylinder charge (.DELTA.mcyl) is preferably calculated using a proportional controller. Therefore, in the preferred embodiment, controller K1 represents a proportional controller. However, as those skilled in the art will recognize, various other control schemes can be used in place of proportional controller K1. For example, proportional integral derivative controllers, or sliding mode controllers, or any other controllers known to those skilled in the art, can be used. Next, in step 330, an intermediate throttle position (Tpint) is calculated from speed error and controller K3. As described above, various controllers can be used for controller K3. In a preferred embodiment, controller K3 is an integral controller. Next, in step 340, a nominal cam timing error (VCTerr) is calculated based on a difference between a desired nominal cam timing (VCTdesnom) and an actual cam timing (VCTact). Desired nominal cam timing (VCTdesnom) can be determined based on operating conditions, for example, based on idle mode, or drive mode. Also, desired nominal cam timing (VCTdesnom) can be set as a function of desired engine torque, or any other steady state scheduling method known to those skilled in the art. Next, in step 350, an intermediate timing (VCTint) is calculated from nominal cam timing error and controller K2. Controller K2 can be any controller known to those skilled in the art. In the preferred embodiment, controller K2 is a proportional integral controller.

[0046] Referring now to FIG. 4, a routine is described for calculating adjustments to cam timing and throttle position to rapidly change cylinder charge. First, in step 410, manifold pressure (Pm) is estimated or measured using sensor 122. In the preferred embodiment, manifold pressure (Pm) is estimated using methods known to those skilled in the art. For example, manifold pressure can be estimated using signal MAF from mass airflow sensor 100, engine speed, and other signals known to those skilled in the art to effect manifold pressure. Next, in step 412, the desired change in cylinder charge (.DELTA.ncyl) is read from FIG. 3. Next, in step 414, a change in cam timing (.DELTA.VCT) is determined to give the desired change in cylinder charge at manifold pressure (Pm) read in step 410. Step 414 is performed using maps relating to cam timing, cylinder charge, and manifold pressure. The maps can be determined theoretically using engine models or measured using engine test data. Next, in step 416, a change in throttle position (.DELTA.TP) is determined to give the desired change in cylinder charge (.DELTA.ncyl) at manifold pressure (Pm) determined in step 410. Step 416 is similarly performed using characteristic maps relating parameters, throttle position, cylinder charge, and manifold pressure. The maps can be determined either using engine models or engine test data.

[0047] Regarding FIG. 5, the routine is described for calculating the desired cam timing and desired throttle position. First, in step 510, a desired cylinder, desired cam timing (VCTdes) is determined based on the desired change in cam timing and intermediate cam timing. Next, in step 512, the desired throttle position (TPdes) is determined based on intermediate throttle position and desired change in throttle position. However, when a cam timing position is desired that is greater than a maximum possible cam timing, or when a minimum cam timing is less than a minimum possible cam timing, desired cam timing (VCTdes) is clipped to the maximum or minimum value. In other words adjustment of cam timing may not be able to provide the desired increase, or decrease in cylinder air charge. In this case, cam timing is clipped to the achievable limit value and throttle position is relied upon to provide control.

[0048] Steady State Constraints

[0049] As described above herein with particular reference to FIGS. 3-5, a control method for controlling engine airflow, or engine torque, and thereby engine speed was described. In addition, the method included a method for rapidly controlling cylinder charge using both an inlet and outlet control device, while also relatively slowly controlling the outlet control device to a nominal position. Both of these process are now further illustrated using both FIGS. 6 and 7.

[0050] Referring now to FIG. 6, a graph is shown with throttle position (TP) on the vertical axis and cam timing (VCT) on the horizontal axis. Dash dotted lines are shown for constant values of engine torque (Te), assuming stoichiometric conditions, while solid lines show constant value of manifold pressure. According to the present invention, the engine can quickly change operating points along the lines of constant pressure (thereby rapidly changing engine airflow and torque) since there are no manifold dynamics in this direction. However, the engine can change only relatively slowly along the dash dotted lines if air/fuel ratio is fixed (for example at stoichiometry). The dashed vertical line represents the nominal desired cam timing for the given operating conditions. For example, the nominal timing for idle conditions, or the nominal timing for the current desired engine torque.

[0051] In other words, manifold dynamics represent dynamics associated with changing manifold pressure and explain why flow entering the cylinder is not always equal to flow entering the manifold. Manifold pressure cannot instantly change due to manifold volume. As manifold volume increases, manifold dynamics become slower. Conversely, as manifold volume decreases, manifold dynamics become faster. Thus, manifold dynamics, or manifold delay, is a function of manifold volume. As described above, when moving along lines of constant pressure, manifold dynamics are essentially immaterial. Therefore, flow changes are not limited by manifold dynamics when inlet and outlet control devices are changed to affect flow in similar directions. By changing inlet and outlet control devices faster than manifold dynamics to increase along both the abscissa and ordinate of FIG. 6, cylinder flow changes faster than manifold dynamics. Stated another way, cylinder flow changes faster than it would if only the inlet control device changed infinitely fast. When inlet and outlet control devices are changed to affect flow in opposite directions, cylinder charge can be kept constant. In particular, both the inlet and outlet control devices are changed slower than manifold dynamics since manifold pressure is changed. This is particular useful when engine airflow, or engine torque, is to be kept relatively constant yet it is desired to place either the inlet control device or the outlet control device in a specified location.

[0052] Referring now to both FIGS. 6 and 7, an example of operation according to an aspect of the present invention is now described. First, the system is operating at point 1. For example, the desired engine torque (Ted) is Te2, or this happens to be the engine torque to maintain a desired engine speed. Then, either the desired engine torque (Ted) changes to Te3, or a torque disturbance causes an engine speed to drop, thereby requiring an increase in engine torque to Te3 to maintain the desired engine speed. At this point (time t5), controller 12 causes both the throttle position and cam timing to change so that the engine system quickly moves to point 2. Next, in order to maintain cam timing and the nominal cam timing, controller 12 causes both the throttle position and cam timing to move to point 3 at a rate slower than the manifold dynamics.

[0053] Thus, according to the present invention, throttle position and cam timing are caused to move in the following way. When it is desired to rapidly increase cylinder air charge irrespective of manifold volume: 1) throttle position moves in a way that causes an increase in throttle opening area, and 2) cam timing is adjusted in a way to increase the inducted cylinder air charge for a given manifold pressure moved. Similarly, when it is desired to rapidly decrease cylinder air charge irrespective of manifold volume: 1) throttle position moves in a way that causes a decrease in throttle opening area, and 2) cam timing is adjusted in a way to decrease the inducted cylinder air charge for a given manifold pressure. Thus, it is possible to rapidly change and maintain flow into the cylinder by this combined action.

[0054] However, when it is desired to maintain cylinder air charge and either increase throttle opening or cause cam timing to move so that less air charge is inducted for a given manifold pressure, or both, 1) throttle position moves in a way that causes an increase in throttle opening area, and 2) cam timing is adjusted in a way to decrease the inducted cylinder air charge for a given manifold pressure. Thus, cylinder charge can be kept constant by this opposing action. Alternatively, when it is desired to maintain cylinder air charge and either decrease throttle opening or cause cam timing to move so that more air charge is inducted for a given manifold pressure, or both, 1) throttle position moves in a way that causes a decrease in throttle opening area, and 2) cam timing is adjusted in a way to increase the inducted cylinder air charge for a given manifold pressure. Again, cylinder charge can be kept constant by this opposing action. Such coordinated control is advantageous in that steady state optimization constraints on cam timing can be provided while still providing the ability to control cylinder air charge rapidly.

[0055] Engine Torque Control

[0056] Referring now to FIG. 8, a routine is described for controlling engine torque rather than engine speed as described in FIG. 3. Engine torque control according to the present invention may be used for various reasons, including normal driving operating, traction control, and/or cruise control. In other words, FIG. 8, along with FIGS. 3-5 can be used to control engine torque, where steps 310-330 are replaced by FIG. 8. Regarding FIG. 8, first, in step 810, a desired engine torque (Ted) is determined. Those skilled in the art will recognize that desired engine torque (Ted) can be determined in various ways. For example, desired engine torque (Ted) can be determine from desired wheel torque and gear ratio, from pedal position and vehicle speed, from pedal position and engine speed, or any other method known to those skilled in the art. Then, in step 820, desired cylinder charge (mcyld) is determined based on a function (h) of desired engine torque (Ted). Function (h) is based on a desired air/fuel ratio, such as stoichiometric conditions.

[0057] Continuing with FIG. 8, in step 830, desired change in cylinder charge (Dmcyl) is determined based on the difference between desired cylinder charge (mcyld) and actual cylinder charge (mcyl). Then, in step 840, intermediate throttle position (Tpint) is calculated from desired change in cylinder charge (Dmcyl) and controller K3. As described above, various controllers can be used for controller K3. In a preferred embodiment, controller K3 is an integral controller. Then, in step 850, a nominal cam timing (VCTdesnom) if determined based on function (g) and desired engine torque (Ted). Then, the routine continues to step 340 in FIG. 3.

[0058] Alternative Embodiment for Cylinder Charge, Torque, and Engine Speed Control

[0059] An alternative embodiment is now described that can be used to control either cylinder air charge, Engine Torque at a given air/fuel ratio, or engine speed. Referring now to FIG. 9, in step 910, a determination is made as to whether the engine is currently in an idle condition. Those skilled in the art will recognize various methods for determining idle conditions such as accelerator pedal position, engine speed, and various other factors. When the answer to step 910 is YES, the routine continues to step 912. In step 912, the desired cylinder charge (mcyldes) based on an engine speed error (Nerr). The desired cylinder charge is calculated using function L1, which can represent any function such as, for example, engine speed error multiplied by a constant gain, which is the preferred embodiment. Otherwise, when the answer to step 910 is NO, the routine continues to step 914. In step 914, the desired cylinder charge is calculated based on either a driver command or operating conditions using function (L2). Those skilled in the art will recognize various methods for calculating a desired cylinder charge from a driver command such as, for example, to provide a desired engine torque, a desired wheel torque, an engine output, or provide any other condition requested by the driver. Those skilled in the art will also recognize various operating conditions that can affect a desired cylinder charge such as, for example, engine starting conditions, cold conditions, or cranking conditions.

[0060] Continuing with FIG. 9, the routine continues from either step 912 or step 914 to step 916. In step 916, a cylinder charge error (mcylerr) is calculated based on desired cylinder charge and actual cylinder charge (mcylact). Next, in step 918, cam timing nominal error is calculated. Next, in step 920, intermediate cam timing is calculated from cam timing nominal error and controller H1. In a preferred embodiment, controller H1 is an integral controller known to those skilled in the art. Also, in a preferred embodiment, the gains of controller H1 are determined so that the cam timing is adjusted slower than manifold dynamics. In other words, the gains of controller H1 are determined based on manifold volume, and engine speed. However, controller H1 can be any controller known to those skilled in the art such as, for example, a PID controller, a PI controller, or a P controller. Next, in step 930, intermediate throttle position is calculated from cylinder charge error and controller H2. In a preferred embodiment, controller H2 is an integral controller; however, as those skilled in the art will recognize, various controllers can be used. Next, in step 940, a difference in cam timing is calculated from cylinder charge error and controller H3. In a preferred embodiment, controller H3 is a lead controller or a high pass filter type controller. Next, the routine continues to step 950, where a difference in throttle position is calculated from the difference in cam timing using controller H4. In a preferred embodiment, controller H4 is simply a constant gain. Next, the routine continues to FIG. 5.

[0061] Air/Fuel Constraints in Lean Conditions

[0062] Referring now to FIG. 10, a routine for restricting air/fuel ratio to specific regions is described. In step 1010, a determination is made as to whether the engine is operating in stratified conditions. When the answer to step 1010 is YES, the routine continues to step 1012. In step 1012, the required fuel injection amount (fi) is calculated based on driver commands or operating conditions. Again, those skilled in the art will recognize various methods for determining a fuel injection amount based on driver command or engine operating conditions. Next, the routine continues to step 1014, where a restricted air range is calculated. The restricted air range is calculated using a maximum and minimum allowable air/fuel ratio, the fuel injection amount, and a band parameter (B). The band parameter is used to allow room for calculation inaccuracies. Next, the routine continues to step 1016, where a determination is made as to whether actual cylinder charge is between the maximum and minimum allowable cylinder charges (mcyl1, mcyl2). When the answer to step 1016 is YES, a determination is then made in step 1018 as to whether it is possible, given the current operating conditions, to produce air charge (mcyl1). This determination can be made based on factors such as, for example, engine speed and atmospheric pressure. In particular, as atmospheric pressure increases, engine 10 is able to pump a greater maximum air amount. Therefore, in a preferred embodiment, limit mcyl is selected when atmospheric pressure is greater than a calibrated value, and mcyl2 is selected otherwise. In other words, in step 1018, a determination is made as to whether the engine can physically produce upper air charge (mcyl1). When the answer to step 1018 is NO, the routine sets the desired cylinder charge (mcyldes) equal to lower air charge (mcyl2) in step 1020. Otherwise, the desired cylinder charge is set to upper cylinder charge (mcyl1).

[0063] Referring now to FIG. 11, the present invention is compared to prior art approaches in controlling engine torque or keeping an air/fuel ratio outside of a restricted air/fuel ratio range. The FIGS. 11a through 11 f show a comparison of the present invention as represented by solid lines, and prior approaches as represented by dashed lines. In prior approaches, as shown in FIG. 11a, fuel injection amount increases at time T6 in response to a change in desired engine torque shown in FIG. 11d. To maintain the air/fuel ratio at a desired point, as shown in FIG. 11e, increased airflow is required. To provide increased airflow, prior approaches change throttle position, as shown in FIG. 11c, at time T6. However, because of airflow dynamics due to the manifold volume, air charge does not increase fast enough, as shown in FIG. 11f. This results in a temporary excursion in the air/fuel ratio into the restricted region as shown in FIG. 11e. Thus, the prior approaches cannot keep the air/fuel ratio completely out of the restricted region.

[0064] According to the present invention, and as described in FIG. 10, at time T6, cam timing, as shown in FIG. 11b, is also increased. This allows the air/fuel ratio, as shown in FIG. 11e, to refrain from entering the restricted air/fuel range. This is possible since the airflow was quickly changed using both cam timing and throttle position as shown in FIG. 11f by the solid line.

[0065] Vehicle Launch Improvement

[0066] Vehicle driveability is improved according to the present invention by providing engine torque increases at a rate faster than available by prior art methods. Regarding FIG. 12, engine 10 is coupled to automatic transmission (AT) 1200 via torque converter (TC) 1210. Automatic transmission (AT) 1200 is shown coupled to drive shaft 1202, which in turn is coupled to final drive unit (FD) 1204. Final drive unit (FD) is coupled wheel 1208 via second drive shaft 1208. In this configuration, engine 10 can be somewhat downsized and still produce acceptable drive feel by controlling engine torque or airflow using both throttle position and cam timing as describe above herein.

[0067] Regarding FIG. 13, torque converter 1210 is removed. Thus, even without downsizing engine 10, using prior approaches driveability is reduced. In other words, vehicle launch is normally assisting from torque multiplication provided by torque converter 1210. Without torque converter 1210, vehicle launch feel is degraded. To compensate for the lack of torque converter 1210, engine 10 is controlled according to the present invention using both throttle position and cam timing to rapidly increase engine torque or airflow, thereby improving drive feel and allowing elimination of torque converter 1210.

[0068] In a preferred embodiment, during vehicle launch at low vehicle speed and low engine speed, both inlet control device and outlet control device 170 and 171 are coordinated to rapidly control engine cylinder charge, thereby improving drive feel. Further to enable such operating, nominal cam timing (VCTdesnom) is set to a value where a large potential increase in cylinder air charge can be achieved when the transmission is in drive and vehicle speed is below a predetermine vehicle speed indicating potential for vehicle launch.

[0069] Turbo Lag Compensation

[0070] Referring now to FIG. 14, a configuration is shown where engine 10 is coupled to a compression device 1400. In a preferred embodiment, compression device 1400 is a turbocharger. However, compression device 1400 can be any compression device such as, for example, a supercharger. Engine 10 is shown coupled to intake manifold 44 b and exhaust manifold 48 b. Also shown is outlet control device 171 coupled between intake manifold 44 b and engine 10. Inlet control device 170 is also shown coupled between intake manifold 44 b and compression device 1400. Compression device 1400 contains compressor 1410.

[0071] According to the present invention, it is now possible to compensate for delays related to turbo lag. In a preferred embodiment, during vehicle launch at low vehicle speed and low engine speed, both inlet control device and outlet control device 170 and 171 are coordinated to rapidly control engine cylinder charge, thereby compensating for the delayed pressure buildup from compression device 1400. However, such an approach can be used throughout various driving conditions, such as, for example, during highway cruising operation.

[0072] While the invention has been shown and described in its preferred embodiments, it will be clear to those skilled in the arts to which it pertains that many changes and modifications may be made thereto without departing from the scope of the invention. For example, as described above herein, any device that affects flow exiting intake manifold 44 and entering cylinder 30 can be used as an outlet control device. For example, a swirl control valve, a charge motion control valve, an intake manifold runner control valve, or an electronically controlled intake valve can be used according to the present invention to rapidly change cylinder fresh charge. Further, any device that affects flow entering intake manifold 44 can be used in place of intake control device. For example, an EGR valve, a purge control valve, or an intake air bypass valve can be used in conjunction with the outlet control device so rapidly change cylinder fresh charge.

[0073] Also, the invention can be applied to any situation where engine cylinder charge needs to be controlled faster than manifold dynamics would normally allow. Accordingly, it is intended that the invention be limited only by the following claims.

[0074] A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other embodiments are within the scope of the following claims. 

What is claimed is:
 1. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and adjusting the outlet control device to provide said desired cylinder charge.
 2. The method recited in claim 1 wherein said outlet control device is a valve of the engine cylinder with variable lift.
 3. The method recited in claim 1 wherein said outlet control device is a valve of the engine cylinder with variable timing.
 4. The method recited in claim 1 further comprising adjusting the inlet control device based on manifold pressure.
 5. The method recited in claim 4 wherein said manifold pressure is manifold absolute pressure.
 6. The method recited in claim 4 wherein said manifold pressure is manifold absolute pressure measured by a pressure sensor coupled to the intake manifold.
 7. The method recited in claim 4 wherein said adjusting the inlet control device further comprises adjusting the inlet control device based on manifold pressure and desired cylinder charge.
 8. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point and an inlet control device set-point based on said desired cylinder charge; and controlling the outlet control device to said outlet control device set-point and the inlet control device to said inlet control device set-point.
 9. The method recited in claim 1 wherein said outlet control device is a valve of the engine cylinder with at least one of variable lift or variable cam timing.
 10. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and adjusting the outlet control device so that actual cylinder charge approaches said desired cylinder charge.
 11. The method recited in claim 10 wherein said outlet control device is a valve of the engine cylinder with at least one of variable lift or variable timing.
 12. The method recited in claim 10 further comprising adjusting the inlet control device based on manifold pressure.
 13. The method recited in claim 12 wherein said manifold pressure is manifold absolute pressure measured by a pressure sensor coupled to the intake manifold.
 14. The method recited in claim 12 wherein said adjusting the inlet control device further comprises adjusting the inlet control device based on manifold pressure and desired cylinder charge.
 15. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point based on said desired cylinder charge and an indication of actual cylinder charge; generating an inlet control device set-point based on an engine operating parameter; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 16. The method recited in claim 15 wherein said outlet control device is a valve of the engine cylinder with at least one of variable lift or variable timing.
 17. The method recited in claim 15 wherein said engine operating parameter is manifold pressure.
 18. The method recited in claim 17 wherein said manifold pressure is manifold absolute pressure measured by a pressure sensor coupled to the intake manifold.
 19. The method recited in claim 16 wherein said generating said inlet control device set-point further comprises generating said inlet control device set-point based on manifold pressure and desired cylinder charge.
 20. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; adjusting the outlet control device based on said desired cylinder charge and an actual cylinder charge; and adjusting the inlet control device based on an engine operating parameter.
 21. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; adjusting the outlet control device based on said desired cylinder charge and an actual cylinder charge; and adjusting the inlet control device based on intake manifold pressure.
 22. The method recited in claim 21 wherein said intake manifold pressure is an absolute pressure.
 23. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; adjusting the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on intake manifold pressure.
 24. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; adjusting the outlet control device to provide said desired cylinder charge; adjusting the electronically controlled throttle based on intake manifold pressure; and controlling fuel injected into the engine based on a desired air-fuel ratio and actual airflow entering the cylinder.
 25. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point based on said desired cylinder charge; generating an inlet control device set-point based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 26. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: providing a command related to desired engine output; calculating a desired cylinder charge based on said command; and generating an outlet control device set-point based on said desired cylinder charge; generating an inlet control device set-point based on said desired cylinder charge and manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 27. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point based on said desired cylinder charge; generating a target throttle position based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the electronically controlled throttle based on said target throttle position.
 28. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point based on said desired cylinder charge, said outlet control device comprising at least one of the intake or exhaust valve of the cylinder; generating an inlet control device position based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device position.
 29. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; measuring an airflow of the engine from a sensor; generating an outlet control device set-point based on said desired cylinder charge and said measured airflow; generating an inlet control device position based on an engine operating parameter; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device position.
 30. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; measuring an airflow of the engine from a sensor; generating an outlet control device set-point based on said desired cylinder charge and said measured airflow; generating an inlet control device set-point based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 31. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a torque command; calculating a desired cylinder charge based on said torque command; generating an outlet control device set-point based on said desired cylinder charge; generating an inlet control device set-point based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 32. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; measuring airflow flowing through the engine; calculating a desired cylinder charge based on said driver torque command; adjusting the outlet control device based on said desired cylinder charge and said measured airflow; and adjusting the inlet control device based on manifold pressure.
 33. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver torque command; calculating a desired cylinder charge based on said driver torque command; and generating an outlet control device set-point based on said desired cylinder charge and an actual cylinder charge; generating an inlet control device set-point based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 34. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command; measuring airflow flowing through the engine; calculating a desired cylinder charge based on said driver command; adjusting the outlet control device based on said desired cylinder charge and said measured airflow; and adjusting the inlet control device based on manifold pressure.
 35. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command; calculating a desired cylinder charge based on said driver command; adjusting the outlet control device based on said desired cylinder charge; and adjusting the inlet control device based on manifold pressure.
 36. The method recited in claim 35 wherein said desired cylinder charge is a desired cylinder air amount.
 37. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command: calculating a desired cylinder air amount based on said driver command: adjusting the outlet control device to provide said desired cylinder air amount: and adjusting the inlet control device based on manifold pressure.
 38. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired cylinder air amount based on said desired engine output; adjusting the outlet control device to provide said desired cylinder air amount; and adjusting the inlet control device based on manifold pressure.
 39. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command; calculating a desired cylinder air amount based on said driver command; adjusting the outlet control device based on said desired cylinder air amount; adjusting the inlet control device based on manifold pressure; determining actual cylinder air amount based on manifold pressure; and controlling fuel injected into the engine based on said actual cylinder air amount.
 40. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command; calculating a desired cylinder air amount based on said driver command; adjusting the outlet control device based on said desired cylinder air amount; adjusting the inlet control device based on manifold pressure; determining actual cylinder air amount based on measured mass air flow; and controlling fuel injected into the engine based on said actual cylinder air amount.
 41. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a driver command; calculating a desired cylinder air amount based on said driver command; adjusting the outlet control device based on said desired cylinder air amount; adjusting the inlet control device based on manifold pressure; determining actual cylinder air amount based on measured manifold pressure; and controlling fuel injected into the engine based on said actual cylinder air amount.
 42. The method recited in claim 41 wherein said measured manifold pressure is a measured manifold absolute pressure.
 43. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the outlet control device being at least one of the intake or exhaust valves of the cylinder, the method comprising: determining a desired engine output; calculating a desired cylinder charge based on said desired engine output; adjusting valve lift or valve timing of the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on an engine operating parameter.
 44. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the outlet control device being at least one of the intake or exhaust valves of the cylinder, the method comprising: determining a desired engine output based on a desired engine speed and an actual engine speed; calculating a desired cylinder charge based on said desired engine output; adjusting valve lift or valve timing of the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on an engine operating parameter.
 45. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the outlet control device being at least one of the intake or exhaust valves of the cylinder, the method comprising: determining a desired engine output based on a desired engine speed and an actual engine speed; calculating a desired cylinder charge based on said desired engine output; adjusting valve lift or valve timing of the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on manifold pressure.
 46. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the outlet control device being at least one of the intake or exhaust valves of the cylinder, the method comprising: determining a desired engine torque based on a desired engine speed and an actual engine speed; calculating a desired cylinder charge based on said desired engine torque; adjusting valve lift or valve timing of the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on manifold pressure.
 47. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: providing a command related to desired engine output; controlling the inlet control device in response to at least an indication of intake manifold pressure; and controlling the outlet control device while said inlet control device is being controlled to adjust engine output toward said desired engine output.
 48. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: providing a command related to desired engine output; controlling the outlet control device in response to at least said command to adjust engine output toward said desired engine output; and controlling the inlet control device in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure.
 49. The method recited in claim 48 comprising a plurality of outlet control devices each one coupled to a respective engine cylinder and wherein said controlling of the outlet control devices controls each of the outlet control devices.
 50. The method recited in claim 49 wherein each of the outlet control devices comprises at least one of an inlet or an exhaust valve and wherein said controlling of the outlet control devices controls valve timing or valve lift.
 51. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired cylinder charge based on said desired engine output; adjusting the outlet control device to provide said desired cylinder charge; and adjusting the inlet control device based on intake manifold pressure.
 52. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired air amount based on said desired engine output; adjusting the outlet control device to provide said desired air amount; and while adjusting the outlet control device, adjusting the inlet control device based at least on intake manifold pressure.
 53. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired cylinder charge based on said desired engine output; adjusting the outlet control device to provide said desired cylinder charge; adjusting the electronically controlled throttle based on intake manifold pressure; and controlling fuel injected into the engine based on a desired air-fuel ratio and an indication of actual airflow entering the cylinder.
 54. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired cylinder charge based on said desired engine output; and generating an outlet control device set-point based on said desired cylinder charge; generating an inlet control device set-point based on manifold pressure; and controlling the outlet control device based on said outlet control device set-point and the inlet control device based on said inlet control device set-point.
 55. A method for controlling an engine having an intake manifold and an outlet control device coupled to the manifold for controlling flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the method comprising: determining a desired engine output; calculating a desired cylinder charge based on said desired engine output; generating an outlet control device set-point based on said desired cylinder charge; generating a target throttle position based at least on manifold pressure: and controlling the outlet control device based on said outlet control device set-point and the electronically controlled throttle based on said target throttle position.
 56. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: providing a command related to desired engine output torque; controlling the outlet control device in response to at least said command to adjust engine output toward said desired engine output; and controlling the inlet control device in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure.
 57. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the method comprising: providing a command related to desired engine output; controlling the outlet control device in response to at least said command to adjust engine output toward said desired engine output, the outlet control device being either an intake or exhaust valve of the cylinder; and controlling the inlet control device in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure.
 58. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an inlet control device for controlling flow entering the manifold, the outlet control device being either an intake or exhaust valve of the cylinder the method comprising: providing a command related to desired engine output; controlling either valve lift or valve timing of the outlet control device in response to at least said command to adjust engine output toward said desired engine output; and controlling the inlet control device in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure.
 59. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the outlet control device being either an intake or exhaust valve of the cylinder the method comprising: providing a command related to desired engine output; controlling either valve lift or valve timing of the outlet control device in response to at least said command to adjust engine output toward said desired engine output; and controlling position of the electronically controlled throttle in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure.
 60. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the outlet control device being either an intake or exhaust valve of the cylinder the method comprising: providing a command related to desired engine output; controlling either valve lift or valve timing of the outlet control device in response to at least said command to adjust engine output toward said desired engine output; and controlling position of the electronically controlled throttle in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure and thereby maintain said manifold pressure at a relatively constant value.
 61. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the outlet control device being either an intake or exhaust valve of the cylinder the method comprising: providing a command related to desired engine output torque; controlling either valve lift or valve timing of the outlet control device in response to at least said command to adjust engine output torque toward said desired engine output torque; and controlling position of the electronically controlled throttle in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure and thereby maintain said manifold pressure at a relatively constant value.
 62. A method for controlling an engine having an intake manifold and at least one outlet control device coupled to the manifold for controlling at least a portion of flow exiting the manifold and entering at least one cylinder of the engine, the engine further having an electronically controlled throttle for controlling flow entering the manifold, the outlet control device being either an intake or exhaust valve of the cylinder the method comprising: providing a command related to desired engine output torque; determining a desired cylinder air charge based on said desired output torque controlling either valve lift or valve timing of the outlet control device in response to at least said command and said desired cylinder air charge to adjust engine output torque toward said desired engine output torque; and controlling position of the electronically controlled throttle in response to at least an indication of intake manifold pressure to reduce an effect of said outlet control device control on said manifold pressure and thereby maintain said manifold pressure at a relatively constant value. 